import request from '/@/utils/request';

/**
 * 
 * @param params 获取参数列表
 * @returns 
 */
export const queryDictTree = (params: any) => {
    return request({ url: '/api/system/dict/queryDictTree', params })
}


/**
 * 添加用户
 * @param params 
 * @returns 
 */
export const add = (params: any) => {
    return request({ url: '/api/system/dict', method: 'post', data: params})
}

/**
 * 修改用户
 * @param params 
 * @returns 
 */
 export const edit = (params: any) => {
    return request({ url: '/api/system/dict', method: 'put', data: params})
}

/**
 * 删除用户
 * @param params 
 * @returns 
 */
 export const remove = (params: any) => {
    return request({ url: '/api/system/dict', method: 'delete', data: params})
}

export const refreshCache = () => {
    return request({ url: '/api/system/dict/refreshCache', method: 'post'})
}